package com.lightheart.sphr.xiaobinggan.module.home.adapter;
import com.chad.library.adapter.base.BaseItemDraggableAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.lightheart.sphr.xiaobinggan.R;
import com.lightheart.sphr.xiaobinggan.bean.Main6DataBean;
import com.lightheart.sphr.xiaobinggan.utils.ImageLoaderUtils;
import java.util.List;

/**
 * Created by admin  2020/1/7/14:59
 * Describe
 * 作者 洪亮 admin
 */
public class HodgepodgeAdapter extends BaseItemDraggableAdapter<Main6DataBean, BaseViewHolder> {

    private List<Main6DataBean> data;

    public HodgepodgeAdapter(int RestId) {
        super(RestId, null);
    }

    @Override
    protected void convert(BaseViewHolder helper, Main6DataBean item) {
        ImageLoaderUtils.display(mContext, helper.getView(R.id.iv_logo), item.getImgRes());
        helper.setText(R.id.tv_text, item.getContent());
        helper.setText(R.id.tv_name, "Demo" + (helper.getAdapterPosition() + 1));
    }
}
